// 提供五套可选主题色
import 'package:flutter/material.dart';

// Color AppbarBackgroundColor = Color.fromARGB(255, 255, 255, 0);
Color AppbarBackgroundColor = Color.fromRGBO(0, 0, 0, 1);
Color SwColor;
double appbar0_opacity = 0;
int search_state = 0;
int pageIndex = 0;
String imgUrl = '';
// Navigator.push(context, MaterialPageRoute(builder: (_) {
//                     return search_bar();
//                   })),

TextEditingController search_value = new TextEditingController(); //声明controller

class Global {
  //初始化全局信息，会在APP启动时执行
  static Future init() async {}
  static setSwColor(int a, int b, int c) {
    SwColor = Color.fromRGBO(a, b, c, 1);
  }

  // ignore: missing_return
  static String getTageName(int i) {
    switch (i) {
      case 0:
        return '热血';
      case 1:
        return '古风';
      case 2:
        return '奇幻';
      case 3:
        return '科幻';
      case 4:
        return '都市';
      case 5:
        return '青春';
      case 6:
        return '穿越';
      case 8:
        return '悬疑';
      case 9:
        return '灵异';
      case 10:
        return '现代';
      case 11:
        return '恋爱';
        break;

      default:
    }
  }
}
